# 基于 Debian slim + JDK21
FROM openjdk:21-jdk-slim

LABEL maintainer="yourname@example.com"

WORKDIR /app

# 拷贝 Sentinel 控制台 jar
COPY sentinel-dashboard-1.8.8.jar /app/sentinel-dashboard.jar

# 暴露端口
EXPOSE 8081

# slim 默认没有 curl/bash，如果需要调试可以临时加：
# RUN apt-get update && apt-get install -y curl bash && rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["java", \
  "-Dserver.port=8081", \
  "-Dsentinel.dashboard.auth.username=sentinel", \
  "-Dsentinel.dashboard.auth.password=sentinel", \
  "-jar", "sentinel-dashboard.jar"]

